import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/realEstateView',
    name: '不动产台账',
    component: () => import('@/views/realEstateView/realEstateView.vue')
  },
  {
    path: '/rentOut',
    name: '不动产出租',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/rentOutView/index.vue')
  },
  {
    path: '/driver',
    name: '驾驶员',
    component: () => import('@/views/driver/index.vue')
  },
  {
    path: '/vehicleFile',
    name: '车辆档案',
    component: () => import('@/views/vehicleFile/index.vue')
  },
  {
    path: '/mileageReporting',
    name: '里程上报',
    component: () => import('@/views/mileageReporting/index.vue')
  },
  {
    path: '/purchaseDirMapping',
    name: '采购目录',
    component: () => import('@/views/purchaseDirMapping/purchaseDirMappingView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
